package com.shuma.approval.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品基本信息表
 * </p>
 *
 * @author xsj
 * @since 2024-06-17
 */
@TableName("goods_base_info")
public class GoodsBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品唯一id
     */
    @TableId(value = "goods_base_id", type = IdType.NONE)
    private Long goodsBaseId;

    /**
     * 商品名
     */
    private String goodsName;

    /**
     * 商品库存
     */
    private Integer goodsStock;

    /**
     * 上线时间
     */
    private LocalDateTime onlineTime;

    /**
     * 下线时间
     */
    private LocalDateTime expireTime;

    /**
     * 管理人名字
     */
    private String operator;

    /**
     * 店小二操作状态(1.草稿、2已编辑、3.已提交审核)
     */
    private Integer goodsOwnerStatus;

    /**
     * 商品审核状态(1.未审核、2.审核通过、3.审核驳回)
     */
    private Integer goodsCheckStatus;

    /**
     * 商品上线状态(1.未上线、2.已上线、3.已下线)
     */
    private Integer goodsOnlineStatus;

    /**
     * 管理人id
     */
    private Long operatorId;

    /**
     * 商品逻辑删除
     */
    private Integer goodsIsDelete;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    public Long getGoodsBaseId() {
        return goodsBaseId;
    }

    public void setGoodsBaseId(Long goodsBaseId) {
        this.goodsBaseId = goodsBaseId;
    }
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public Integer getGoodsStock() {
        return goodsStock;
    }

    public void setGoodsStock(Integer goodsStock) {
        this.goodsStock = goodsStock;
    }
    public LocalDateTime getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(LocalDateTime onlineTime) {
        this.onlineTime = onlineTime;
    }
    public LocalDateTime getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(LocalDateTime expireTime) {
        this.expireTime = expireTime;
    }
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
    public Integer getGoodsOwnerStatus() {
        return goodsOwnerStatus;
    }

    public void setGoodsOwnerStatus(Integer goodsOwnerStatus) {
        this.goodsOwnerStatus = goodsOwnerStatus;
    }
    public Integer getGoodsCheckStatus() {
        return goodsCheckStatus;
    }

    public void setGoodsCheckStatus(Integer goodsCheckStatus) {
        this.goodsCheckStatus = goodsCheckStatus;
    }
    public Integer getGoodsOnlineStatus() {
        return goodsOnlineStatus;
    }

    public void setGoodsOnlineStatus(Integer goodsOnlineStatus) {
        this.goodsOnlineStatus = goodsOnlineStatus;
    }
    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }
    public Integer getGoodsIsDelete() {
        return goodsIsDelete;
    }

    public void setGoodsIsDelete(Integer goodsIsDelete) {
        this.goodsIsDelete = goodsIsDelete;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "GoodsBaseInfo{" +
            "goodsBaseId=" + goodsBaseId +
            ", goodsName=" + goodsName +
            ", goodsStock=" + goodsStock +
            ", onlineTime=" + onlineTime +
            ", expireTime=" + expireTime +
            ", operator=" + operator +
            ", goodsOwnerStatus=" + goodsOwnerStatus +
            ", goodsCheckStatus=" + goodsCheckStatus +
            ", goodsOnlineStatus=" + goodsOnlineStatus +
            ", operatorId=" + operatorId +
            ", goodsIsDelete=" + goodsIsDelete +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
